package com.valor.order.exception;

import com.valor.order.enums.ResultEnum;

/**
 * 订单异常
 */
public class OrderException  extends  RuntimeException{
    private Integer code;
    public OrderException(Integer code,String msg){
       super(msg);
       this.code = code;
    }
    public OrderException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }
}
